package com.yswy.app.dto.domianVo;

import com.yswy.domain.entity.AppUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel("app 用户")
public class AppUserVo {
    private Long id;
    @ApiModelProperty("用户 token")
    private String authToken ;
    @ApiModelProperty("用户 openid")
    private String openid ;
    @ApiModelProperty("用户 头像")
    private String headImg ;
    @ApiModelProperty("用户 昵称")
    private String nickName ;
    @ApiModelProperty("用户手机")
    private String userPhone;
    @ApiModelProperty("邀请码")
    private String invatecode;
    @ApiModelProperty("性别")
    private Integer sex;
    @ApiModelProperty("会员过期时间")
    private Date memberExpirationTime;
    private Boolean isMember ;
    private Integer money ;
    private Boolean isAB ;
    public AppUserVo(AppUser appUser , Integer money ,boolean isAB  ) {
        this.id = appUser.getId();
        this.openid = appUser.getOpenid();
        this.authToken = appUser.getAuthToken();
        this.headImg = appUser.getHeadImg();
        this.nickName = appUser.getNickName();
        this.userPhone = appUser.getUserPhone();
        this.invatecode = appUser.getInvatecode();
        this.sex = appUser.getSex();
        this.memberExpirationTime = appUser.getMemberExpirationTime();
        this.isMember = appUser.getIsMember();
        this.money = money;
        this.isAB = isAB;
    }
}
